package com.firefly.admin.tripartite.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.firefly.admin.common.vo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Date;

@Data
@ToString
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "FyTripartiteWechatOfficialAccount", description = "第三方微信公众号信息")
public class FyTripartiteWechatOfficialAccount extends BaseEntity {

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "公众号ID")
    private Long officialAccountId;

    @ApiModelProperty(value = "公众号名称")
    private String officialAccountName;

    @ApiModelProperty(value = "公众号APP_ID")
    private String appId;

    @ApiModelProperty(value = "公众号秘钥")
    private String secretKey;

    @ApiModelProperty(value = "公众号状态 1：启用 0：停用")
    private String status;

    @ApiModelProperty(value = "公众号TOKEN")
    private String accessToken;

    @ApiModelProperty(value = "TOKEN过期时间")
    private Date tokenExpireTime;

    @ApiModelProperty(value = "公众号菜单状态  1：发布 0：未发布")
    private String menuStatus;

    @ApiModelProperty(value = "菜单JSON")
    private String menuJson;
}
